package dao.oracle;

import dao.BidDao;
import dao.DaoFactory;
import dao.FullInfoDao;
import dao.ItemDao;
import dao.UserDao;

/**
 * The specific implementation for Oracle DAOfactory
 * @author Ilya_Poliakov
 */
public class OracleDaoFactory extends DaoFactory {

	private final OracleConnection connection;

	/**
	 * create new DaoFactory for oracle
	 */
	public OracleDaoFactory() {
		super();
		connection = new OracleConnection();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public BidDao getBidDao() {
		return new OracleBidDao(connection);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public FullInfoDao getFullInfoDao() {
		return new OracleFullInfoDao(connection);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public ItemDao getItemDao() {
		return new OracleItemDao(connection);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UserDao getUserDao() {
		return new OracleUserDao(connection);
	}

}
